package com.nwpu.server.learning.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * 
 * @author YuXingZh
 * @email 617058979@qq.com
 * @date 2022-01-23 16:24:31
 */
@Data
@TableName("fms_file")
public class FileEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id值
	 */
	@TableId(type = IdType.INPUT)
	private String id;
	/**
	 * id值
	 */
	private String taskId;
	/**
	 * id值
	 */
	private String userId;
	/**
	 * 文件名
	 */
	private String fileName;
	/**
	 * 文件大小
	 */
	private String size;
	/**
	 * 创建时间
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createdTime;
	/**
	 * 点击量
	 */
	private Integer account;

}
